package com.yueqian.dao;

import com.yueqian.domain.Member;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

public interface IMemberDao {

    @Select("select * from member where id=#{mid}")
    @Results({
            @Result(id = true, column = "id", property = "id"),
            @Result(column = "name", property = "name"),
            @Result(column = "nickname", property = "nickname"),
            @Result(column = "phoneNum", property = "phoneNum"),
            @Result(column = "email", property = "email")
    })
    public Member findById(String mid);
}
